package com.lucene.similarity;

import org.apache.lucene.index.FieldInvertState;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.search.CollectionStatistics;
import org.apache.lucene.search.TermStatistics;
import org.apache.lucene.search.similarities.Similarity;

import java.io.IOException;

/**
 * Created by zhangzhen on 24/10/2017.
 */
public class DomainSimilarity extends Similarity {

    @Override
    public long computeNorm(FieldInvertState fieldInvertState) {
        return 0;
    }

    @Override
    public SimWeight computeWeight(float v, CollectionStatistics collectionStatistics, TermStatistics... termStatistics) {
        return null;
    }

    @Override
    public SimScorer simScorer(SimWeight simWeight, LeafReaderContext leafReaderContext) throws IOException {
        return null;
    }
}
